package com.jbm.onehome.iface;

import com.jbm.core.iface.IAcross;

import javax.persistence.Transient;

/**
 * Created by root on 16-1-19.
 */
public class IOrder extends IAcross
{
	public IOrder(IAcross ia)
	{
		super(ia);
	}

    public IOrder ()
    {
        super();

        back = false;
        method = "";
        errorinfo = "";

        start = 0;
        count = 0;

        start_date = "";
        end_date = "";
    }

    public IOrder ( boolean back, String errorinfo )
    {
        this();

        this.back = back;
        this.errorinfo = errorinfo;
    }

    public IOrder ( String method, int order_id )
    {
        this();

        this.method = method;
        this.order_id = order_id;
    }
    public IOrder (int seller_id, String start_date, String end_date,int start, int count)
    {
        this();
        this.start_date = start_date;
        this.end_date = end_date;
        this.start = start;
        this.count = count;
        this.seller_id=seller_id;

    }

    public  IOrder(String mobile, String giText, String contacts, String item_desc, String type,  int gc_id,  String ordertime )
    {
        this.mobile= mobile;
        this.giText=giText;
        this.contacts=contacts;
        this.item_desc=item_desc;
        this.type=type;
        this.gc_id=gc_id;
        this.ordertime=ordertime;

    }

    public IOrder ( String method, int order_id, int member_id, int seller_id, int caddr_id, String item_desc, String type, String status, String goods_code, int start, int count, String start_date, String end_date  )
    {
        this();

        this.order_id = order_id;
        this.method = method;
        this.member_id = member_id;
        this.seller_id = seller_id;
        this.caddr_id = caddr_id;
        this.item_desc = item_desc;
        this.type = type;
        this.status = status;
        this.goods_code = goods_code;

        this.start = start;
        this.count = count;

        this.start_date = start_date;
        this.end_date = end_date;

    }

    public IOrder ( String method, int member_id, int seller_id, int caddr_id, String item_desc, String type, String status, String goods_code, int qty, String amount, int sact_id )
    {
        this();

        this.method = method;
        this.member_id = member_id;
        this.seller_id = seller_id;
        this.caddr_id = caddr_id;
        this.item_desc = item_desc;
        this.type = type;
        this.status = status;
        this.goods_code = goods_code;
        this.qty = qty;
        this.amount = amount;
        this.sact_id = sact_id;
    }

    public IOrder ( String method, int order_id, String com_desc, int com_speed_level, int com_quality_level, int com_attitude_level )
    {
        this();

        this.method = method;

        this.order_id = order_id;
        this.com_desc = com_desc;
        this.com_speed_level = com_speed_level;
        this.com_quality_level = com_quality_level;
        this.com_attitude_level = com_attitude_level;
    }

    public IOrder ( String method, int order_id, int seller_id )
    {
        this();

        this.method = method;

        if ( method.equals("getcomlist"))
        {
            this.start = order_id;
            this.count = seller_id;
        }else
        {
            this.order_id = order_id;
            this.seller_id = seller_id;
        }
    }
    private static final long serialVersionUID = 1900001L;


    public int order_id;
    public String order_code;
    public int member_id;
    public String member_name;
    public String seller_name;
    public int seller_id;
    public int caddr_id;
    public int sact_id;
    public String amount;
    public String job_amount;
    public String item_amount;
    public ICertAddress caddr;
    public String item_desc;
    public String type;
    public String status;
    public String create_date;
    public int create_id;
    public String expire_date;
    public String close_date;
    public int close_id;

    public String goods_code;

    public String com_desc;
    public int com_speed_level;
    public int com_quality_level;
    public int com_attitude_level;

    public int qty;



    public String start_date;
    public String end_date;

    public int is_inner;

    public String ordertime;
    public int voucher;
    public IAttachment[] ord_att;
    public IAttachment[] jord_att;
     public int cg_id;
    public String gi_type;
    public int    gc_id;
    public Integer isTurned;
    public Integer isSettlement;
    public String contacts;  //联系人
    public String mobile;    //联系电话
    public String giText;   //地址
    public String gcf_contract;
    public int gi_id;
    public String ext_order_code;
    public String proxy;
    public String proxyMobile;
    public String dispatchDate;

    @Transient
    public boolean back;
    @Transient
    public String method;
    @Transient
    public String errorinfo;
    @Transient
    public int count;
    @Transient
    public int start=0;
    @Transient
    public int pagesize=0;
    @Transient
    public Integer tableid;
}
